$('#v_password').on('change', function () {
    if ($('#password').val() == '' || $('#v_password').val() == '') {
        mui.toast('密码不能为空');
        return;
    } else {
        $('#btn').removeAttr('disabled').off('tap').on('tap', function () {
            $.post("/index/user/checkNewPass", $('#myForm').serialize(),
                function (data) {
                    console.log(data);
                    if (data.code == 2) {
                        location.href = '/index/index/index.html';
                    } else {
                        mui.toast(data.massage);
                        return;
                    }
                },
                "json"
            );
        })

    }
})